package com.zengtengpeng.generator;

import java.util.Arrays;
import java.util.List;

import com.zengtengpeng.generator.bean.StartCode;
import com.zengtengpeng.generator.utils.AutoCodeUtils;


public class AutoCodeTest {
	public static void main(String[] args) {

		List<String> dataNames= Arrays.asList("attendance","advance","message","wage","wage_receipt","gen_record");
		StartCode startCode=new StartCode();
		startCode.setJdbc("jdbc:mysql://192.168.0.104:3306/guard");
		startCode.setUser("root");
		startCode.setPassword("123456");
		startCode.setDataNames(dataNames); // 表名
		startCode.setParentPath("d:/Java/gencode/bishe"); // 生成后放到哪个目录
		startCode.setParentPack("com.java456"); // 包名
//		AutoCodeUtils.startByWebAdmin(startCode);
		AutoCodeUtils.startByBiShe(startCode);
	}

}